package com.liuya.shiro;

import java.io.Serializable;

/**
 * @Author 刘亚
 * @Date 2016/12/19
 */
public class Principal implements Serializable {
    private static final long serialVersionUID = 5798882004228239559L;
    private String id;
    private String username;

    /**
     * 创建会员的主要信息
     * @param id
     * @param username
     */
    public Principal(String id, String username) {
        this.id = id;
        this.username = username;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String toString() {
        return this.username;
    }
}